package czx.wt.system.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: spring-jwt
 * @description: 菜单实体
 * @author: ChenZhiXiang
 * @create: 2019-06-19 14:18
 **/
@TableName("sys_menu")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu implements Serializable {

    private static final long serialVersionUID = 1332503904213434984L;

    /** 菜单id */
    @TableId
    private Integer menuId;
    /** 父级id */
    private Integer parentId;
    /** 菜单名称 */
    private String menuName;
    /** 菜单url */
    private String menuUrl;
    /** 菜单图标 */
    private String menuIcon;
    /** 对应权限 */
    private String authority;
    /** 排序号 */
    private Integer sortNumber;
    /** 创建时间 */
    private Date createTime;
    /** 修改时间 */
    private Date updateTime;
    /** 父级菜单 */
    @TableField(exist = false)
    private String parentName;
}
